This pull request introduces significant refactoring and cleanup of the API endpoints, focusing on the removal of unused routes, consolidation of product-related endpoints, and improvements to metadata returned by the API. #20
Merged
goldlabelapps merged 2 commits intomasterfrom Mar 23, 2026
Conversation
Remove the 'description' and 'message' fields from the meta objects in the root and products endpoints and move the 'severity' key for consistent ordering. This standardizes the response meta payloads and removes redundant/static text (e.g., 'Welcome to NX AI!'); no other behavior changes were made.
Bump version to 1.0.9, remove legacy echo and CSV import endpoints, and add a new /products/reset endpoint that recreates and seeds the product table. Exports reset router from app.api.products and includes it in the central routes; also keep the products listing route that returns product data with enriched meta (version, base_url, timestamp). Update app metadata/title in main.py and adjust tests to validate the new meta structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main changes include deleting the deprecated
/echoand/import-csvendpoints, moving the product reset and product list endpoints into a new module, and updating the structure of API responses for consistency.API endpoint removals and consolidation:
/echoand/import-csvendpoints and their routers from the codebase, streamlining the API surface. [1] [2] [3]/productsendpoint into a new moduleapp/api/products/reset.py, consolidating product-related logic. [1] [2] [3]API response structure improvements:
metafield in API responses by adding a"severity": "success"property and removing redundant or unused fields such as"description"and"message"in both the root and products endpoints. [1] [2] [3]"title"field is present in themetaresponse for better clarity and consistency. [1] [2] [3] [4]Project metadata and documentation:
1.0.8to1.0.9to reflect these changes.titlefor improved clarity and branding. [1] [2]